module.exports = {
    publicPath: '/',
    assetsDir: './',
    outputDir: './dist',
    devServer: {
        open: true,
        // 代理
        proxy: {
            "/api": {
                target: "http://192.168.1.253:8082",
                ws: true,
                changeOrigin: true,
                pathRewrite: {
                    "^/api": " "
                }
            },
        },
    },
    configureWebpack: (config) => {
        if (process.env.NODE_ENV === 'production') { // 为生产环境修改配置...
            config.mode = 'production';
            config["performance"] = { //打包文件大小配置
                "maxEntrypointSize": 10000000,
                "maxAssetSize": 30000000
            }
        }
    },
}